<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="auform" id="packForm" method="post">
		<input type="hidden" name="upgradePack.upgradeId" id="upgradeId" value="123211" />
		<input type="hidden" name="upgradePack.releaseDate" id="releaseDate" />
		<input type="hidden" name="upgradePack.downTotal" id="downTotal" />
		<table class="autable">
			<tr><td class="autd1"><B>基本属性</B></td></tr>
			<tr>
				<td class="autd1">升级类型：</td>
				<td class="autd2"><select class="easyui-combobox" name="upgradePack.upType" id="upType" panelHeight="auto" style="width:200px;" editable="false" required="true">
						<option value="${status.BAG_PRO}" selected="selected">产品</option>
						<option value="${status.BAG_UPPK}" selected="selected">产品补丁</option>
						<option value="${status.BAG_PLUG}">插件</option>
						<option value="${status.BAG_PLUGUPPK}">插件补丁</option>
						<option value="${status.BAG_REPORT}">报表</option>
						<option value="${status.BAG_REPORTUPPK}">报表升级</option>
					</select><span class="red">*</span>
				</td>
			</tr>
			<tr>
				<td class="autd1">所属分类：</td>
				<td class="autd2"><input name="upgradePack.category" id="category" style="width:200px;" required="true"><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1" style="width:120px;">升级\插件名称：</td>
				<td class="autd2"><input name="upgradePack.upName" id="upName" style="width:200px;" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
				</tr>
			<tr>
				<td class="autd1" style="width:120px;">升级\插件编码：</td>
				<td class="autd2"><input name="upgradePack.upCode" id="upCode" style="width:200px;" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">升级\插件包：</td>
				<td class="autd2" colspan="3"><input name="downpath" id="downpath" style="width:200px;color: #ccc;" class="txt" readonly="readonly" onclick="openUpload({target:'uploadWindow',fieldName:'downpath'});"><span class="red">*</span></td>
			</tr> 
			<tr>
				<td class="autd1">升级包大小(B)：</td>
				<td class="autd2"><input name="upgradePack.packSize" id="packSize" style="width:200px;" readonly="readonly"></td>
			</tr>
			<tr>
				<td class="autd1">状态：</td>
				<td class="autd2">
					<select class="easyui-combobox" name="upgradePack.state" id="state" panelHeight="auto" style="width:200px;" required="true" editable="false">
						<option value="${status.UPPK_STATE_NORMAL}" selected="selected">正常</option>
						<option value="${status.UPPK_STATE_BLOCK}">锁定</option>
						<option value="${status.UPPK_STATE_DELETE}">废除</option>
					</select><span class="red">*</span>
				</td>
			</tr>
			<tr>
				<td class="autd1">作者：</td>
				<td class="autd2"><input name="upgradePack.author" id="author" style="width:200px;" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">相关处理：</td>
				<td class="autd2"><input name="delFlag" id="delFlag" class="txt" type="checkbox"> 废除上一版本</td>
			</tr>
			<tr>
				<td class="autd1"></td>
				<td class="autd2"><input name="pushFlag" id="pushFlag" class="txt" type="checkbox"> 向用户推送消息</td>
			</tr>
			<tr><td class="autd1"><B>版本信息</B></td></tr>
			<tr>
				<td class="autd1">支持产品：</td>
				<td class="autd2"><input name="upgradePack.proCode" id="proCode" style="width:200px;"  required="true"><span class="red">*</span> 产品的编码</td>
			</tr>
			<tr>	
				<td class="autd1">版本区间：</td>
				<td class="autd2"><input name="upgradePack.suptVersion" id="suptVersion" style="width:200px;"  required="true"><span class="red">*</span> 英文逗号相隔,若针对特定版本,则前后数值一致即可,如1.3,1.3</td>
			</tr>
			<tr>
				<td class="autd1">修正区间：</td>
				<td class="autd2"><input name="upgradePack.suptRevision" id="suptRevision" style="width:200px;" class="easyui-validatebox txt" required="true"><span class="red">*</span> 若针对特定修正号,则前后数值一致即可,如152,152</td>
			</tr>
			<tr>
				<td class="autd1">出厂版本：</td>
				<td class="autd2"><input name="upgradePack.exVersion" id="exVersion" style="width:200px;" class="easyui-validatebox txt" required="true"><span class="red">*</span></td>
			</tr>
			<tr><td class="autd1"><B>版本信息</B></td></tr>
			<tr>
				<td class="autd1">费用类型：</td>
				<td class="autd2"><select class="easyui-combobox" name="upgradePack.consumType" id="consumType" panelHeight="auto" style="width:200px;" editable="false" required="true">
						<option value="${status.COST_ONCE}">一次性</option>
						<option value="${status.COST_FREE}" selected="selected">免费</option>
						<option value="${status.COST_KEEP}">续费性</option>
					</select>
					<span class="red">*</span>
				</td>
			</tr>
			<tr>
				<td class="autd1">费用描述：</td>
				<td class="autd2"><input name="upgradePack.price" id="price" style="width:200px;"> 只显示,不进行费用计算,例如:25/月</td>
			</tr>
			<tr><td class="autd1"><B>描述</B></td></tr>
			<tr>
				<td class="autd1">简单描述：</td>
				<td class="autd2" colspan="3"><textarea name="upgradePack.description" id="description" class="txtarea" style="width:300px;height:50px"></textarea> 简单描述,在客户端显示,汉字100以内</td>
			</tr>
			<tr>
				<td class="autd1">详细描述：</td>
				<td class="autd2" colspan="3"><textarea name="upgradePack.detail" id="detail" class="txtarea" style="width:500px;height:100px"></textarea></td>
			</tr>
			
			<tr>
				<td class="autd3" colspan="4">
					<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					<a href="#" id="btn-add" onclick="addOrUpdate('${param.update}');" class="easyui-linkbutton" iconCls="icon-save">发布</a>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
